Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 4 - Advanced Printing Features / Advanced Printing Features Reference
Functions / Working With Paper Types


GXCountJobPaperTypes

You can use the GXCountJobPaperTypes function to obtain the total number of paper-type definitions that are accessible to a particular job object.

long GXCountJobPaperTypes (gxJob aJob, Boolean forFormatDevice);
aJob
A reference to the job object from which to obtain the number of paper-type definitions.
forFormatDevice
A Boolean value that specifies whether the paper-type objects are associated with the formatting printer (true) or with the output printer (false).
function result
The number of paper-type objects that are associated with the print job.
DESCRIPTION
The GXCountJobPaperTypes function returns the number of paper types associated with either the print job's formatting printer or output printer.

Set the forFormatDevice parameter to true to count only the paper types associated with the formatting printer or to false to count only paper types associated with the output printer.

Depending on the format specification of the job object, the total number of paper types returned may include the total number of system paper types, user paper types, printer driver paper types, and printer-configuration-file paper types.

Use the GXGetJobError function to retrieve errors for this function.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help